const path = require('path')
const resolve = dir => path.join(__dirname, dir)

const name = "uniapp";

module.exports = {
    lintOnSave: process.env.NODE_ENV === "development",
    // 路径别名
    configureWebpack: {
        name: name,
        resolve: {
            alias: {
                "@": resolve("static"),
                "@api": resolve("common/api"),
                "@common": resolve("common"),
                "@components": resolve("components")
            }
        }
    }
}